home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmCreateDir
- BackColor = &H00C0C0C0&
- Caption = "Directory Commands"
- ClientHeight = 2190
- ClientLeft = 2895
- ClientTop = 1695
- ClientWidth = 5895
- Height = 2595
- Left = 2835
- LinkTopic = "Form1"
- ScaleHeight = 2190
- ScaleWidth = 5895
- Top = 1350
- Width = 6015
- Begin TextBox txtPath
- Height = 285
- Index = 1
- Left = 1680
- TabIndex = 3
- Text = "Text1"
- Top = 1000
- Width = 3975
- End
- Begin CommandButton cmdOK
- Caption = "Delete Path:"
- Height = 375
- Index = 1
- Left = 120
- TabIndex = 1
- Top = 960
- Width = 1455
- End
- Begin CommandButton cmdOK
- Caption = "Create Path:"
- Height = 375
- Index = 0
- Left = 120
- TabIndex = 0
- Top = 240
- Width = 1455
- End
- Begin CommandButton cmdExit
- Caption = "&Exit"
- Height = 375
- Left = 2280
- TabIndex = 4
- Top = 1680
- Width = 1095
- End
- Begin TextBox txtPath
- Height = 285
- Index = 0
- Left = 1680
- TabIndex = 2
- Text = "Text1"
- Top = 280
- Width = 3975
- End
- Begin Line Line2
- X1 = 120
- X2 = 5640
- Y1 = 1560
- Y2 = 1560
- End
- Begin Line Line1
- X1 = 120
- X2 = 5640
- Y1 = 840
- Y2 = 840
- End
- '''''''''''''''''''''''''''''''''''''''''''''''''
- ' Copyright by Advanced Applications 1994 - 1995
- ' All rights reserved
- '''''''''''''''''''''''''''''''''''''''''''''''''
- Sub cmdExit_Click ()
- Me.Hide
- End Sub
- Sub cmdOK_Click (Value As Integer)
- Screen.MousePointer = HOURGLASS
- If txtPath(Value).Text = "" Then Exit Sub
- strPath$ = txtPath(Value).Text
- Select Case Value
- Case 0
- nReturn% = CreatePath(strPath$)
- If nReturn% = FILE_EXISTS Then
- MsgBox "Directory was created"
- Else
- Screen.MousePointer = DEFAULT
- DisplayError (nReturn%)
- End If
- Case 1
- nReturn% = DeletePath(strPath$)
- If nReturn% = FILE_EXISTS Then
- MsgBox "Directory was Deleted"
- Else
- Screen.MousePointer = DEFAULT
- DisplayError (nReturn%)
- End If
- End Select
- Screen.MousePointer = DEFAULT
- End Sub
- Sub Form_Load ()
- Left = (Screen.Width - Width) / 2 ' Center form horizontally.
- Top = (Screen.Height - Height) / 2 ' Center form vertically.
- txtPath(0).Text = ""
- txtPath(1).Text = ""
- End Sub
-